# import csv
# import os
# import pandas as pd
#
# # csv_reader=csv.reader(open('test-labels.csv'))
# # for row in csv_reader:
# #     print row
# #
# # /data/ztl/uploadData/ILSVRC2012/img_train/train_jpg
# data_path="/home/sumihui/dataset/mnist"
# isDirExists=os.path.exists('/home/sumihui/dataset/mnist')
#
#
# filenames=[name for name in os.listdir(data_path) if os.path.isfile(os.path.join(data_path,name))]
# # out=open('mnistfile.csv','w')
# # csv_writer=csv.writer(out,dialect='excel')
# # csv_writer.writerow(filenames)
#
# labels=[]
# for line in filenames:
#     label,num,jpg = line.split(".")
#     labels.append(label)
#
#
# dataframe=pd.DataFrame({'filename':filenames,'label':labels})
# dataframe.to_csv('mnist.csv',index=False,header=False)

import random

a=['a','b','c','d','e']
print a

b=random.sample(a, 3)
print b

for i in b:
    a.remove(i)

print a